package com.emzoism.springboot.springbootdive.annotation;

import com.emzoism.springboot.springbootdive.config.UserModel;
import com.emzoism.springboot.springbootdive.util.SpringContextUtil;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(UserModel.class)
public class ConfigurationBean {

    @Bean
    public SpringContextUtil springContextUtil(){
        return new SpringContextUtil();
    }
}
